package co.fitstart.admin.entity.report;

/**
 * 在营课程数据变化
 * @author haiyan_xiao
 *
 */
public class UnfinishedRoundChange {
    /** 课程id */
    private Long id;
    
    /** 入营时体重 */
    private Float weightBefore;
    
    /** 最近体重 */
    private Float weightAfter;
    
    /** 入营时体脂率 */
    private Float bfrBefore;
    
    /** 最近体脂率 */
    private Float bfrAfter;

    /**
     * 体重差
     * @return
     */
    public Float getWeightChange() {
        if(this.weightBefore != null && this.weightAfter != null) {
            return this.weightBefore - this.weightAfter;
        } else {
            return null;
        }
    }

    /**
     * 体脂率差
     * @return
     */
    public Float getBfrChange() {
        if(this.bfrBefore != null && this.bfrAfter != null) {
            return this.bfrBefore - this.bfrAfter;
        } else {
            return null;
        }
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the weightBefore
     */
    public Float getWeightBefore() {
        return weightBefore;
    }

    /**
     * @param weightBefore the weightBefore to set
     */
    public void setWeightBefore(Float weightBefore) {
        this.weightBefore = weightBefore;
    }

    /**
     * @return the weightAfter
     */
    public Float getWeightAfter() {
        return weightAfter;
    }

    /**
     * @param weightAfter the weightAfter to set
     */
    public void setWeightAfter(Float weightAfter) {
        this.weightAfter = weightAfter;
    }

    /**
     * @return the bfrBefore
     */
    public Float getBfrBefore() {
        return bfrBefore;
    }

    /**
     * @param bfrBefore the bfrBefore to set
     */
    public void setBfrBefore(Float bfrBefore) {
        this.bfrBefore = bfrBefore;
    }

    /**
     * @return the bfrAfter
     */
    public Float getBfrAfter() {
        return bfrAfter;
    }

    /**
     * @param bfrAfter the bfrAfter to set
     */
    public void setBfrAfter(Float bfrAfter) {
        this.bfrAfter = bfrAfter;
    }
}
